import request from '@/utils/request'

// 查询应用详情列表
export function listDetail(query) {
  return request({
    url: '/application/detail/list',
    method: 'get',
    params: query
  })
}

// 查询应用详情详细
export function getDetail(id) {
  return request({
    url: '/application/detail/' + id,
    method: 'get'
  })
}

// 新增应用详情
export function addDetail(data) {
  return request({
    url: '/application/detail',
    method: 'post',
    data: data
  })
}

// 修改应用详情
export function updateDetail(data) {
  return request({
    url: '/application/detail',
    method: 'put',
    data: data
  })
}

// 删除应用详情
export function delDetail(id) {
  return request({
    url: '/application/detail/' + id,
    method: 'delete'
  })
}

// 导出应用详情
export function exportDetail(query) {
  return request({
    url: '/application/detail/export',
    method: 'get',
    params: query
  })
}
export function appTitle() {
  return request({
    url: '/application/detail/appTitlelist',
    method: 'get'
  })
}
  export function appDetailTitle() {
    return request({
      url: '/application/detail/appDetailTitle',
      method: 'get'
    })
}
